package cn.dansj.common.utils.shell;

import java.io.IOException;

public class ShellProcessExecException extends IOException {
    private final int exitCode;

    public ShellProcessExecException(int exitCode, String msg) {
        super(msg);
        this.exitCode = exitCode;
    }

    public ShellProcessExecException(int exitCode, Throwable cause) {
        super(cause);
        this.exitCode = exitCode;
    }

    public int getExitCode() {
        return exitCode;
    }
}
